﻿using fmtx.Utility;
using System.Web.Mvc;

namespace website.Areas.UCenter
{
    public class UCenterAreaRegistration : AreaRegistrationOrder
    {
        public override string AreaName
        {
            get
            {
                return "UCenter";
            }
        }

        public override int Order
        {
            get { return 4; }
        }

        public override void RegisterAreaOrder(AreaRegistrationContext context)
        {

            context.MapRoute(
                "UCenter_default",
                "{uid}/{controller}/{action}/{id}",
                new { controller = "User", action = "Index", uid = UrlParameter.Optional, id = UrlParameter.Optional },
                new { uid = @"[\d]{1,20}" }
            );

        }
    }
}
